import { ref, computed } from 'vue'

export function useBaseInfo(emit) {
  const activeKey = ref()

  const tabsOptions = computed(() => {
    return {
      tabBarStyle: {
        height: '36px',
        padding: '0 8px',
        marginBottom: '8px',
      },
    }
  })

  const onCloseCode = () => emit('close')
  return { activeKey, tabsOptions, onCloseCode }
}
